#include "testAndSet.h"

#define WIN32_LEAN_AND_MEAN
#include <windows.h>

long testAndSet(long* value, long newValue)
{
	return InterlockedExchange(value, newValue);
}